logo_patterns:
	incbin	"binary_data/logo.bin.pletter.til"

logo_patterns_colors:
	incbin	"binary_data/logo.bin.pletter.col"

logo_scr:
	incbin	"binary_data/logo.bin.pletter.scr"

battle_screen:
	incbin	"binary_data/battle_screen.bin.pletter.scr"

left_blank_card:
	incbin	"binary_data/blank_left_card.bin.pletter.scr"

right_blank_card:
	incbin	"binary_data/blank_right_card.bin.pletter.scr"

shop_patterns_colors:
	incbin	"binary_data/shop_tiles.bin.pletter.col"
	
shop_screen:
	incbin	"binary_data/shop_screen.bin.pletter.scr"
	
shop_red_card:
	incbin	"binary_data/shop_red_card.bin.pletter.scr"
	
shop_blue_card:
	incbin	"binary_data/shop_blue_card.bin.pletter.scr"

shop_green_card:
	incbin	"binary_data/shop_green_card.bin.pletter.scr"

quit_screen:
	incbin	"binary_data/quit.bin.pletter.scr"


background_tileset1_patterns:
	incbin	"binary_data/background_tileset1.bin.pletter.til"
background_tileset1_colors:
	incbin	"binary_data/background_tileset1.bin.pletter.col"

background_tileset2_patterns:
	incbin	"binary_data/background_tileset2.bin.pletter.til"
background_tileset2_colors:
	incbin	"binary_data/background_tileset2.bin.pletter.col"

background_tileset3_patterns:
	incbin	"binary_data/background_tileset3.bin.pletter.til"
background_tileset3_colors:
	incbin	"binary_data/background_tileset3.bin.pletter.col"



background_tileset1_names_left:
	incbin	"binary_data/background_tileset1_names_left.bin.pletter.scr"
background_tileset1_names_right:
	incbin	"binary_data/background_tileset1_names_right.bin.pletter.scr"

background_tileset2_names_left:
	incbin	"binary_data/background_tileset2_names_left.bin.pletter.scr"
background_tileset2_names_right:
	incbin	"binary_data/background_tileset2_names_right.bin.pletter.scr"

background_tileset3_names_left:
	incbin	"binary_data/background_tileset3_names_left.bin.pletter.scr"
background_tileset3_names_right:
	incbin	"binary_data/background_tileset3_names_right.bin.pletter.scr"







minicard_brown:
	db	180,181,182, 183,184,185, 183,186,185, 187,188,189

minicard_blue:
	db	190,191,192, 193,194,195,  193,196,195, 197,198,199

minicard_green:
	db	200,201,202, 203,204,205, 203,206,205, 207,208,209
	

MGO	equ	MINICARD_GRAYOUT_OFFSET

minicard_brown_greyedout:
	db	180+MGO,181+MGO,182+MGO, 183+MGO,184+MGO,185+MGO, 183+MGO,186+MGO,185+MGO, 187+MGO,188+MGO,189+MGO

minicard_blue_greyedout:
	db	190+MGO,191+MGO,192+MGO, 193+MGO,194+MGO,195+MGO,  193+MGO,196+MGO,195+MGO, 197+MGO,198+MGO,199+MGO

minicard_green_greyedout:
	db	200+MGO,201+MGO,202+MGO, 203+MGO,204+MGO,205+MGO, 203+MGO,206+MGO,205+MGO, 207+MGO,208+MGO,209+MGO


shop_filter_all:
	db	1,2,3,23,13,  4,5,6,26,16,  4,7,6,26,16,  8,9,10,30,20
	
shop_filter_red
	db	1,2,3,3,3, 4,5,6,6,6, 4,7,6,6,6, 8,9,10,10,10

shop_filter_blue:
	db	21,22,23,23,23, 24,25,26,26,26, 24,27,26,26,26, 28,29,30,30,30

shop_filter_green:
	db	11,12,13,13,13, 14,15,16,16,16, 14,17,16,16,16, 18,19,20,20,20



shop_filter_all_greyout:
	db	31,32,33,53,43,  34,35,36,56,46,  34,37,36,56,46,  38,39,40,60,50

shop_filter_red_greyout:
	db	31,32,33,33,33,  34,35,36,36,36,  34,37,36,36,36,  38,39,40,40,40

shop_filter_blue_greyout:
	db	51,52,53,53,53, 54,55,56,56,56, 54,57,56,56,56, 58,59,60,60,60

shop_filter_green_greyout:
	db	41,42,43,43,43, 44,45,46,46,46, 44,47,46,46,46, 48,49,50,50,50


shop_action_in:
	;db	60,61,66,67	
	;db	62,251,254,255
	db	60,61,66,67	
	db	62,251,38,38


shop_action_out:
	;db	60,61,252,253	
	;db	62,63,68,69	
	db	60,61,38,38	
	db	62,63,68,69	



tiny_mage_scr:					;23,14
	db	249,250,251,0
	db	252,253,254,255
	db	249,250,251,252		;bank 3


battle_finished_boss_gameover:
	incbin "binary_data/battle_finished_boss_gameover.bin.pletter.scr"

battle_finished_boss_lose:
	incbin "binary_data/battle_finished_boss_lose.bin.pletter.scr"

battle_finished_boss_victory:
	incbin "binary_data/battle_finished_boss_victory.bin.pletter.scr"

battle_finished_training_lose:
	incbin "binary_data/battle_finished_training_lose.bin.pletter.scr"

battle_finished_training_win:
	incbin "binary_data/battle_finished_training_win.bin.pletter.scr"

tinymagebank2_tiles:
	incbin "binary_data/tinymagebank2.tiles.bin.pletter.til"

tinymagebank2_colors:
	incbin "binary_data/tinymagebank2.tiles.bin.pletter.col"

tinymagebank3_tiles:
	incbin "binary_data/tinymagebank3.tiles.bin.pletter.til"

tinymagebank3_colors:
	incbin "binary_data/tinymagebank3.tiles.bin.pletter.col"


drop_text:
	db	"-OUT-"

arcomage_id:
	db	"ARCOMAGE"
	;db	"PIRATE.."



generic_enemy_name:
	db	0,0,"FOE",0
generic_player_name:
	db	"PLAYER"

	
main_menu_cursor:
	db	41,42
	
	
		IF DEMO_MODE==1
demo_label:
	db	"-- DEMO VERSION --"
		ENDIF
	
main_menu_option0_txt:
	db	"QUEST"
main_menu_option1_txt:
	db  "SHOP"
main_menu_option2_txt:
	db	"TRAINING"
main_menu_option3_txt:
	db	"SAVE"
main_menu_option4_txt:
	db	"LOAD"
main_menu_credits_txt:
	db	"BITVISION SOFTWARE 2015"
	;db	"VERSION FOR GUANTXIPMSX"
	
	
main_menu_save_load_tape:
	db	"TAPE"
	
main_menu_save_load_sram:
	db	"PAC/FMPAC"

main_menu_save_load_back:
	db	"BACK"

main_menu_saveload_saved:
	db	"SAVED     "
main_menu_saveload_loaded:
	db	"LOADED    "
main_menu_saveload_error:
	db	"ERROR     "
main_menu_saveload_nofound:
	db	"NOT FOUND!"


	
battle_quest_gameover:
	db  "GAME OVER"

battle_player_win_gameover1:
	db	"AND",0,"THE",0,"ARCOMAGE",0,"BETRAYED"
battle_player_win_gameover2:
	db	"HIS",0,"PEOPLE",0,"AND",0,"TOOK",0,"OVER"
battle_player_win_gameover3:
	db	"OF",0,"THE",0,"LAND" 

story_mode_title_txt:
	db	"QUEST"

story_mode_stage_txt:
	db	"STAGE"

combat_finished_txt:
	db	15,"COMBAT FINISHED"

deadlock_player:
	db	15,"PLAYER DEADLOCK"

deadlock_enemy:
	db	14,"ENEMY DEADLOCK"


;Enemies definitions
quest_enemy_list_ptr:
	dw	enemy1_name
	dw	deck_enhaced

	dw	enemy2_name
	dw	deck_combo_card_easy

	dw	enemy3_name
	dw	deck_tactics_2

	dw	enemy4_name
	dw	deck_long_turn_hard

	dw	enemy5_name
	dw	deck_advanced

	dw	enemy6_name
	dw	deck_crippling

	dw	enemy7_name
	dw	deck_bloody_wall_hard

	dw	enemy8_name
	dw	deck_tower_killer_hard

	dw	enemy9_name
	dw	deck_skyscraper

	dw	enemy10_name
	dw	deck_massive_damage
	
enemy1_name:
	db	6,"WARDEN"
enemy2_name:
	db	6,0,"RAGUN"
enemy3_name:
	db	6,"THALOS"
enemy4_name:
	db	5,0,"RAHI"
enemy5_name:
	db	6,"LINMER"
enemy6_name:
	db	6,"LOPRAK"
enemy7_name:
	db	6,"MADGUY"
enemy8_name:
	db	6,"XANDAL"
enemy9_name:
	db	6,"GENMON"
enemy10_name:
	db	6,"MREVIL"




;Enemies training definitions
training_enemy_l1_list_ptr:								;l1 - 40 cards
	dw	deck_shitty
	dw	deck_damage_to_tower
	IF DEMO_MODE==0
	dw	deck_defensive
	ENDIF
	IF DEMO_MODE==1
	dw	deck_tower_killer
	ENDIF
;	dw	deck_tactics
;	dw	deck_damage_to_tower
;	dw	deck_defensive	
training_enemy_l2_list_ptr:								;l2  41-60
	dw	deck_tactics
	dw	deck_complex_to_manage
	dw	deck_world
;	dw	deck_complex_to_manage
;	dw	deck_enhaced
;	dw	deck_tactics_2

training_enemy_l3_list_ptr:								;l3	 61-80
	dw	deck_long_turn_mild
	dw	deck_tricky
	dw	deck_combo_card_mild
;	dw	deck_advanced
;	dw	deck_crippling
;	dw	deck_combo_card_hard

training_enemy_l4_list_ptr:								;l4	81-
	dw	deck_combo_card_hard
	dw	deck_bloody_wall
	dw	deck_tower_killer
;	dw	deck_tricky
;	dw	deck_massive_damage
;	dw	deck_massive_damage


deck_shitty:
	db	0,30																							;background number, number of cards
	db	0,1,2,3,6,8,9,10,11,12,13,14,16,29,34,36,37,39,63,64,68,69,70,71,73,76,77,81,97,98 
	
deck_damage_to_tower:
	db	1,34																							;background number, number of cards
	db	0,1,2,3,6,8,9,10,11,12,13,14,16,29,34,36,37,39,63,64,68,69,70,71,73,76,77,81,97,98,30,35,40,75

deck_defensive:
	db	2,33
	db	0,1,2,3,6,8,9,10,11,12,13,14,16,29,34,36,37,39,63,64,68,69,70,71,73,76,77,81,97,98,15,22,43
	
deck_tactics:
	db	2,33
	db	0,1,2,3,6,8,9,10,11,12,13,14,16,29,34,36,37,39,63,64,68,69,70,71,73,76,77,81,97,98,7,47,92

deck_complex_to_manage:
	db	0,47
	db	3,5,6,9,10,11,12,13,14,15,16,19,20,21,28,29,30,31,35,36,37,40,41,46,49,50,53,63,64,68,70,71,73,75,76,77,80,81,82,83,84,85,87,97,98,99,101
	
deck_enhaced:
	db	1,48
	db	3,5,11,12,13,14,15,16,19,21,22,23,24,28,30,32,35,36,37,40,42,43,50,51,53,54,63,64,65,68,71,73,75,76,78,80,82,83,84,85,86,87,88,93,94,98,99,101
	
deck_tactics_2:
	db	2,47
	db	5,6,9,10,11,12,14,15,16,19,20,21,28,29,30,31,35,36,40,41,46,49,50,53,63,64,68,70,73,75,76,77,80,81,82,83,84,85,87,97,98,99,101,7,38,47,92
	
deck_advanced:
	db	0,46
	db	1,4,5,6,7,10,12,17,18,19,20,21,23,24,28,31,32,41,43,44,45,46,47,49,50,51,53,54,55,65,73,76,78,79,81,82,83,84,85,87,89,90,91,92,98,101
	
deck_crippling:
	db	1,46
	db	0,1,4,5,7,10,14,16,17,18,20,23,24,25,26,28,30,31,33,41,43,44,45,46,47,49,50,51,53,54,55,65,68,73,78,79,81,82,83,86,87,88,92,94,98,101
	
deck_combo_card_hard:
	db	2,26
	db	5,10,20,21,22,24,26,27,31,32,49,51,54,56,57,59,60,67,77,84,91,92,93,94,95,101
	
deck_tricky:
	db	0,37
	db	1,2,4,5,7,13,16,17,18,20,26,27,31,33,34,35,38,42,44,45,47,50,53,55,59,60,66,67,72,81,87,89,92,93,94,95,99
	
deck_massive_damage:
	;db	1,25
	;db	2,10,17,18,21,24,26,27,31,50,52,59,61,67,79,81,86,87,88,89,93,94,95,99,100
	db	1,23
	db	17,17,21,24,26,27,31,37,52,59,61,67,79,79,86,87,88,89,93,94,95,99,100
	
deck_combo_card_easy:
	db	2,27
	db	1,5,6,10,20,22,29,30,31,40,41,45,46,49,51,54,64,65,70,73,74,77,80,81,84,85,97
	
deck_combo_card_mild:
	db	0,33
	db	1,5,10,18,20,21,22,24,28,29,30,31,32,40,41,46,49,50,53,54,56,57,62,64,65,77,80,81,92,97,98,99,101
	
deck_tricky_moderated:
	db	1,30
	db	1,2,4,5,7,13,14,20,24,26,31,33,34,35,38,45,47,50,51,53,55,59,66,69,72,87,89,92,94
	
deck_long_turn_mild:
	db	2,20
	db	1,2,12,13,34,35,38,69,72,75,4,5,11,15,24,46,58,71,86,88	
	
deck_long_turn_hard:
	db	1,25
	db	1,2,12,13,34,35,38,69,72,75,4,17,25,46,49,59,79,89,93,94,20,27,32,33,67
	
deck_tower_killer:
	db	2,31
	db	4,5,17,27,30,33,35,37,38,40,42,44,46,47,49,50,53,54,61,65,66,71,72,74,75,78,79,81,90,91,100
	
deck_bloody_wall:
	db	1,31
	db	2,5,19,20,23,25,26,31,32,33,34,35,40,41,46,48,49,52,54,56,57,58,60,61,75,77,78,80,90,93,96
	
deck_skyscraper:
	db	2,30
	db	0,1,2,5,21,22,23,24,25,27,28,34,41,43,46,47,48,49,50,55,56,58,59,61,62,63,67,68,81,92
	

deck_tower_killer_hard:
	db	0,36
	db	5,13,17,26,27,30,33,35,37,38,40,42,44,46,47,49,50,52,53,54,61,65,66,67,71,72,74,75,78,79,81,90,91,96,99,100
	
deck_bloody_wall_hard:
	db	1,36
	db	2,5,19,20,23,25,26,31,32,33,34,35,40,41,46,48,49,52,54,56,57,58,60,61,75,77,78,80,86,88,90,92,93,95,96,99
	
deck_world:
	db	2,102
	db	0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101



		
battle_background1:
	dw	background_tileset1_names_left
	dw	background_tileset1_names_right
	dw	background_tileset1_patterns
	dw	background_tileset1_colors

battle_background2:
	dw	background_tileset2_names_left
	dw	background_tileset2_names_right
	dw	background_tileset2_patterns
	dw	background_tileset2_colors

battle_background3:
	dw	background_tileset3_names_left
	dw	background_tileset3_names_right
	dw	background_tileset3_patterns
	dw	background_tileset3_colors




TINIMAGE_EYES_COLOR_LIST_SIZE	equ		8;5

tinymage_eyes_colors:
	db	1,1,1,1,6,8,8,8,6
	
	
FLAG_SCENE_LIST_SIZE			equ		3
	
flag_scene:
	db	52,60,68,60
	
	
debris_initial_values:
	;	y	x	sc	col
;towers
	db	72+16,  0+8, 76, 15  
	db	72+16,240-8, 76, 15  
;walls
	db	72+16, 24+8, 76, 15  
	db	72+16,216-8, 76, 15  

;dungeon counters
	db	120, 32, 76, 3 ;10  
	db	120,216-8, 76, 3 

;magic counters
	db	160, 32, 76, 7;8 
	db	160,216-8, 76, 7  
	
;quarry counters
	db	168-8, 80+8, 76, 9;2  
	db	168-8,176-16-8, 76, 9  


	
	
shop_fire_initial_values:
	db	32-8,207+1,94,9
	db	32-8,207+1,98,11
	
	db	32-8,239+1,102,9
	db	32-8,239+1,106,11
	
	db	32+40-8,207+1,110,9
	db	32+40-8,207+1,114,11
	
	db	32+40-8,239+1,94,9
	db	32+40-8,239+1,98,11
	

	db	32+40+32+8-8,207+1,102,9
	db	32+40+32+8-8,207+1,106,11

	db	32+40+32+8-8,239+1,94,9
	db	32+40+32+8-8,239+1,98,11


FIRE_SCENE_LIST_SIZE		equ		4
	
fire_scene:
	db	94,102,110,118,126 ;,118,110,102


load_screen_sprites_attribs:
	;y,x,pattern,color
	db	168-1,40,156-12,1
	db	72-1,16,160-12,1
	db	72-1,64,164-12,6
	db	40-1,16,168-12,4		;error?
	db	56-1,16,172-12,4
	db	72-1,16,176-12,4
	db	88-1,16,180-12,1
	db	104-1,16,184-12,1
	db	120-1,24,188-12,1
	db	32-1,48,192-12,1


sprt_play:
	incbin "binary_data/sprites.bin.pletter"
